//
//  MHShowMoreBookCollectionViewCell.m
//  ManHua
//
//  Created by lanou on 15/10/28.
//  Copyright © 2015年 蓝欧科技. All rights reserved.
//

#import "MHShowMoreBookCollectionViewCell.h"
#import <UIImageView+WebCache.h>
@interface MHShowMoreBookCollectionViewCell()
@property (strong, nonatomic) IBOutlet UIImageView *bookPicture;
@property (strong, nonatomic) IBOutlet UILabel *booName;

@end
@implementation MHShowMoreBookCollectionViewCell

- (void)awakeFromNib {
    // Initialization code
    self.contentView.layer.cornerRadius = 8;
    self.contentView.layer.borderWidth = 1;
    self.contentView.layer.borderColor = [[UIColor lightGrayColor] CGColor];
}
-(void)setBannerModel:(MHTopicBannerModel *)bannerModel
{
    _bannerModel=bannerModel;
    [_bookPicture sd_setImageWithURL:[NSURL URLWithString:bannerModel.TopicIconUrl] placeholderImage:[UIImage imageNamed:@"f3c2d7039245d688094612bba6c27d1ed21b242c.jpg"]];
    _booName.text=bannerModel.TopicName;
    
}
@end
